package com.voute.Model.Impl;

import com.voute.Api.CreateFeedService;
import com.voute.Model.Bean.CreateFeedResposneBean;
import com.voute.Model.Bean.RecommendCirclesBean;
import com.voute.Model.ICreateFeedModel;
import com.voute.Utils.ServiceFactory;

import java.util.HashMap;

import rx.Observable;

/**
 * Created by liucxu on 2017/4/27.
 */

public class CreateFeedModelImpl implements ICreateFeedModel {

    @Override
    public Observable<RecommendCirclesBean> queryRecommandCircles(String q) {
        return ServiceFactory.GetInstance().createService(CreateFeedService.class).queryRecommandCircles(q);
    }

    @Override
    public Observable<CreateFeedResposneBean> CreateFeed(HashMap<String, String> params) {
        return ServiceFactory.GetInstance().createService(CreateFeedService.class).CreateFeed(params);
    }
}
